package com.test.exam.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.test.exam.domain.Admin;

@Repository
public class AdminDao {
	private final String ADMIN_NS = "com.test.exam.mapper.AdminMapper";
	@Autowired
	SqlSessionTemplate sqlSessionTemplate;

	public Admin getAndminByIdAndPw(Admin admin) {
		return sqlSessionTemplate.selectOne(ADMIN_NS + ".getAndminByIdAndPw",
				admin);
	}
}